// ==UserScript==
// @name         灵梦御所
// @namespace    http://zerowuchina.oschina.io/base/
// @version      0.0.9
// @description  老司机钥匙
//@icon			 https://blog.reimu.net/wp-content/uploads/2016/02/cropped-logo-32x32.png
// @author       Zero Wu
// @match        https://blog.reimu.net/archives/*
// @require      http://lib.sinaapp.com/js/jquery/1.12.4/jquery-1.12.4.min.js
// @updateURL	 https://gitee.com/zerowuchina/base/raw/master/js/reimuDisplayBlock.meta.js
// @downloadURL	 https://gitee.com/zerowuchina/base/raw/master/js/reimuDisplayBlock.user.js
// @grant        none
// @run-at      document-end
// ==/UserScript==
//const web = 'www.llss.me';
$(document).ready(function(){
	var flag = setInterval(function(){
		if($('pre').attr('style') === 'display:block') {
			console.log('显示隐藏的东西');
			clearInterval(flag);
		} else {
			$('pre').attr('style','display:block');
		}
	}, 500);
	
	/* if($('.entry-content>p>a').length >0 && $('.entry-content>p>a').text().match('【原帖地址】') !== null) {
		$('.entry-content>p>a').each(function(){
			if($(this).text() === "【原帖地址】") {
				var b = $(this).attr('href').split('/');
				if(b[2] === web) {
					return;
				} else {
					b[2] = web;
					$(this).attr('href', b.join('/'));
					console.log("修改后的网址: " + b);
				}
			}
		});
	}*/
});